AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include('shared.lua')

local function Reflect(ply, hitgroup, dmginfo)
	local attacker = dmginfo:GetAttacker()
	if ply:GetNWBool("Reflectd") && dmginfo:IsBulletDamage() && ply != attacker then
		attacker:TakeDamage(dmginfo:GetDamage() * 0.5, attacker, inflictor)
	end
end
hook.Add("ScalePlayerDamage", "Reflect", Reflect)